package com.yst.gateway.monitor.models;

import java.util.Date;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import com.yst.gateway.monitor.common.validator.groups.Groups;

public class QzChannelInterface {
	@NotBlank(message="{qzChannel.id.NotBlank}",groups={Groups.Modify.class})
    private String channelInterId;

	@NotBlank(message="{qzChannel.name.NotBlank}")
	@Length(max=50,min=0)
    private String name;

	@NotBlank(message="{qzChannel.proName.NotBlank}")
	@Length(max=50,min=0)
    private String projectName;

	@NotNull(message="{qzChannel.interType.NotBlank}")
	@Max(value=9)
    private Integer interfaceType;

	@NotBlank(message="{qzChannel.channel.NotBlank}")
	@Length(max=50,min=0)
    private String channelId;
    
    private String channelName;

    @NotBlank(message="{qzChannel.business.NotBlank}")
    @Length(max=50,min=0)
    private String businessId;
    
    private String businessName;

    @NotBlank(message="{qzChannel.channelType.NotBlank}")
    @Length(max=50,min=0)
    private String channelType;
    
    private String channelTypeName;

    @NotBlank(message="{qzChannel.protocol.NotBlank}")
    @Length(max=50,min=0)
    private String protocol;
    
    private String protocolName;

    @NotBlank(message="{qzChannel.packetFormat.NotBlank}")
    @Length(max=50,min=0)
    private String packetFormat;
    
    private String packetFormatName;

    @NotBlank(message="{qzChannel.idnteractive.NotBlank}")
    @Length(max=50,min=0)
    private String idnteractive;
    
    private String idnteractiveName;
    
    @NotNull(message="{qzChannel.runStatus.NotBlank}")
	@Max(value=9)
	private Integer runStatus;

    @NotNull(message="{qzChannel.enableStatus.NotBlank}")
	@Max(value=9)
    private Integer enableStatus;

    @Length(max=50,min=0)
    private String businessNum;

    @Length(max=100,min=0)
    private String businessPwd;

    @Max(value=99)
    private Integer priority;

    @Length(max=50,min=0)
    private String contacts;

    @Length(max=50,min=0)
    private String contactsPhone;

    private Integer isNoDel;

    private Date ctime;

    private String creator;

    private Date utime;

    private String modifier;

    @Length(max=65535,min=0)
    private String securitys;

    @Length(max=65535,min=0)
    private String interfaceMsg;

    public String getChannelInterId() {
        return channelInterId;
    }

    public void setChannelInterId(String channelInterId) {
        this.channelInterId = channelInterId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Integer getInterfaceType() {
        return interfaceType;
    }

    public void setInterfaceType(Integer interfaceType) {
        this.interfaceType = interfaceType;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getChannelType() {
        return channelType;
    }

    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getPacketFormat() {
        return packetFormat;
    }

    public void setPacketFormat(String packetFormat) {
        this.packetFormat = packetFormat;
    }

    public String getIdnteractive() {
        return idnteractive;
    }

    public void setIdnteractive(String idnteractive) {
        this.idnteractive = idnteractive;
    }

    public Integer getRunStatus() {
        return runStatus;
    }

    public void setRunStatus(Integer runStatus) {
        this.runStatus = runStatus;
    }

    public Integer getEnableStatus() {
        return enableStatus;
    }

    public void setEnableStatus(Integer enableStatus) {
        this.enableStatus = enableStatus;
    }

    public String getBusinessNum() {
        return businessNum;
    }

    public void setBusinessNum(String businessNum) {
        this.businessNum = businessNum;
    }

    public String getBusinessPwd() {
        return businessPwd;
    }

    public void setBusinessPwd(String businessPwd) {
        this.businessPwd = businessPwd;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getContactsPhone() {
        return contactsPhone;
    }

    public void setContactsPhone(String contactsPhone) {
        this.contactsPhone = contactsPhone;
    }

    public Integer getIsNoDel() {
        return isNoDel;
    }

    public void setIsNoDel(Integer isNoDel) {
        this.isNoDel = isNoDel;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getUtime() {
        return utime;
    }

    public void setUtime(Date utime) {
        this.utime = utime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public String getSecuritys() {
        return securitys;
    }

    public void setSecuritys(String securitys) {
        this.securitys = securitys;
    }

    public String getInterfaceMsg() {
        return interfaceMsg;
    }

    public void setInterfaceMsg(String interfaceMsg) {
        this.interfaceMsg = interfaceMsg;
    }
    
    public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public String getBusinessName() {
		return businessName;
	}

	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}

	public String getChannelTypeName() {
		return channelTypeName;
	}

	public void setChannelTypeName(String channelTypeName) {
		this.channelTypeName = channelTypeName;
	}

	public String getProtocolName() {
		return protocolName;
	}

	public void setProtocolName(String protocolName) {
		this.protocolName = protocolName;
	}

	public String getPacketFormatName() {
		return packetFormatName;
	}

	public void setPacketFormatName(String packetFormatName) {
		this.packetFormatName = packetFormatName;
	}

	public String getIdnteractiveName() {
		return idnteractiveName;
	}

	public void setIdnteractiveName(String idnteractiveName) {
		this.idnteractiveName = idnteractiveName;
	}
}